package com.healthcloud.service;

import cn.jpush.api.bean.TestDateEntity;
import com.healthcloud.entity.JpushInfoEntity;
import com.healthcloud.entity.JpushInfoVo;
import com.healthcloud.entity.PpPatientBaseEntity;
import com.healthcloud.utils.PageParam;

import java.util.List;
import java.util.Map;

/**
 * 推送表
 * 
 * @author yucl
 * @email yucailong1111@126.com
 * @date 2017-10-27 11:10:48
 */
public interface JpushInfoService {
	
	JpushInfoEntity queryObject(Long id);
	
    List<JpushInfoEntity> queryList(JpushInfoEntity bean, PageParam pageParam);
	
	int queryTotal(JpushInfoEntity bean);
	
	void save(JpushInfoEntity jpushInfo);
	
	void update(JpushInfoEntity jpushInfo);
	
	void delete(Long id);
	
	void deleteBatch(Long[] ids);

	/**
	 * 保存到病人表
	 * @param testDateEntity
	 */
	void savePatient(TestDateEntity testDateEntity);


	/**
	 * 查询用户id和设备名称
	 * @param mKMedicalinstrumentId
	 * @return
	 */
	List<JpushInfoVo> getJpushInfo(String mKMedicalinstrumentId);


	/**
	 * 保存
	 * @param testDateEntity
	 */
	void saveJpushInfoEntity(TestDateEntity testDateEntity,String mKMedicalinstrumentId);
}
